@font-face {
  font-family: 'Cairo';
  src: url('../fonts/static/Cairo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}


body {
    background: #fff;
    overflow-x: hidden;
}

body, html {
    overflow-x: hidden;
}

html{
    scroll-behavior: smooth;
}


header .logo {
    position: relative;
    width: 140px;
    height: auto;
}

header .logo img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    transition: opacity 0.3s;
    opacity: 1; 
}

header .logo .logo-blue {
    top: 0;
    left: 0;
    width: 140px;
    transition: opacity 0.3s;
    opacity: 0; 
}

header.scrolled .logo img:first-child {
    opacity: 0; 
}

header.scrolled .logo .logo-blue {
    opacity: 1; 
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.3s;
    background: transparent;
    border-bottom: 0px solid transparent;
}

header.scrolled {
    background: #ffffff;
    border-bottom: 4px solid #033d83; 
}

header .container {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row-reverse;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    transition: 0.3s;
}

header.scrolled nav ul li a {
    color: #000;
}

.triangle-btn-wrapper {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.triangle-btn-wrapper div {
  width: 100%;
  height: 4px;
  background-color: white; 
  transition: 0.3s;
}


header.scrolled .triangle-btn-wrapper div {
  background-color: #033d83;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 25px;
    left: 0;
    background: #ffffff;
    padding: 10px 0;
    border-radius: 6px;
    display: none;
    min-width: 170px;
    top: calc(120% - 5px);
}

.dropdown-menu li a {
    color: #000 !important;
    display: block;
    padding: 8px 15px;
    text-decoration: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.hero {
    min-height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 400px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("../images/contact\ us\ banner.png") center/cover no-repeat;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); 
}

/* ================= CONTACT CARD ================= */

.contact-card {
    position: absolute;
    left: 50%;
    bottom: -600px;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    width: 90%;
    max-width: 950px;
    margin: auto;
    display: grid;
    direction: rtl;
    grid-template-columns: 1fr 1.3fr;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

/* LEFT */
.contact-info {
    background: #f4f6fb;
    padding: 40px;
}

.contact-info h3 {
    color: #1f2f5c;
    margin-bottom: 5px;
    text-align: right;
    
}

.info-item {
    display: flex;
    gap: 23px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #333;
}

.info-item span{
    text-align: justify;
    margin-top: 5px;
}

.info-item span a{  
    color: #333;
    text-decoration: none;
}

.info-item span a:hover{
    text-decoration: underline;
}

.icon-box {
    width: 34px;
    height: 34px;
    background: #1f2f5c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mid{
    margin-top: 100px;
}

.final{
    margin-top: 135px;
}

.social {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.social a{
    width: 30px;
    height: 30px;
    border: 3px solid #1f2f5c;
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
}

.social a img {
    width: 25px;
    height: 25px;   
    padding: 4px;
    cursor: pointer;
}

.social a:hover{
    transform: scale(1.1);
}

/* RIGHT */
.contact-form {
    padding: 40px;
}

.contact-form h3 {
    margin-bottom: 25px;
    color: #1f2f5c;
    text-align: right;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    background: #f2f3f7;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.form-row {
    display: flex;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2f5c;
    margin-bottom: 6px;
    text-align: right;
    margin-left: 10px;
}

.contact-form button {
    width: 100%;
    background: #1f2f5c;
    color: #fff;
    padding: 13px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}


.full-image-section {
    width: 100%;
    margin-top: 600px;
}

.full-image-section img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.full-image-section img:hover {
    transform: scale(1.05); /* تكبير بسيط عند المرور بالفأرة */
}


/*================== footer ==================*/

.footer {
    background: #0a2955;
    padding: 50px 80px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    grid-auto-flow: column;
    gap: 40px;
    align-items: start;
    direction: rtl;
    text-align: right;
}


.footer-logo {
    display: flex;
    flex-direction: column; 
}

.logo-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 10px;  
}

.social-icons {
    display: flex;
    gap: 5px;
    margin-top: 50px;
    justify-content: flex-start;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;   
    height: 32px;
    border-radius: 50%;
    border: solid white;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}

.social-icons a img {
    width: 20px;   
    height: 20px;
    display: block;
}

.social-icons a:hover {
    background: #0a2955;
    transform: scale(1.1);
}

.footer-section h3 , p{
    margin-bottom: 10px;
    color: white;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 8px 0;
    color: #444;
    padding-right: 20px;
    padding-left: 0;
    position: relative;
}

.footer-section ul li::before {
    content: '';
    position: absolute;
    right: 0;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 8px; 
    height: 8px;
    background-color: white; 
    border-radius: 50%; 
}

.footer-section ul li a{
    text-decoration: none;
    color: white;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.map-box {
    width: 140px;
    height: 120px;;
}

.bottom-bar {
    background: #0a2955;
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 14px;
}

.bottom-bar a{
    color: white;
}

.bottom-bar a:hover{
    color: #ffcb05;
}

.back-to-top{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: #fff;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #25356b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.back-to-top polyline:last-child{
    stroke: #1e1400; 
}

.back-to-top.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover{
    transform: scale(1.05);
}

@media (min-width: 992px) {
  .triangle-btn-wrapper {
    display: none;
  }
}

/* ================= MOBILE ================= */
@media screen and (max-width: 480px) {
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
    }

    nav.active {
        display: block;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul li a {
        color: #000 !important;
    }

    nav ul {
        padding: 0;
    }

    .countdown{
        gap: 4px;
    }

    .hero {
        position: relative;
        min-height: 60vh; 
    }
    
    .contact-card {
        position: relative; 
        display: flex;
        flex-direction: column-reverse;
        width: 92%;
        max-width: 950px;
        margin: -80px auto 0 auto; 
        margin-right: 50px;
        grid-template-columns: none;
    }
    
    .contact-info {
        margin: 0;
        padding: 30px;
        border-radius: 14px 14px 0 0;
    }
    
    .contact-form {
        padding: 30px;
        border-radius: 0 0 14px 14px;
        background: #fff; 
        margin-top: 0; 
    }
    
    header {
        z-index: 1000;
    }
    
    .contact-info h3,
    .contact-form h3 {
        font-size: 18px;
    }
    
    .info-item {
        gap: 12px;
        font-size: 13px;
    }
    
    .icon-box {
        width: 28px;
        height: 28px;
    }
    
    .icon-box img {
        width: 16px;
        height: 16px;
    }

    .form-row {
        display: flex;
        flex-direction: row; /* خليهم على نفس السطر */
        gap: 12px;
    }

    .form-row .field {
        flex: 1; /* ياخد نفس العرض */
        margin-bottom: 14px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 13px;
    }
    
    .contact-form button {
        font-size: 14px;
        padding: 12px;
    }

    .social {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .social a {
        width: 34px;
        height: 34px;
    }
    
    .social a img {
        width: 22px;
        height: 29px;
    }

    .footer {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 24px 12px !important;
        grid-template-columns: none !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    

    .footer * {
        box-sizing: border-box !important;
        max-width: 100%;
    }
    
    .footer > .logo-wrapper,
    .footer > .footer-logo,
    .footer > :nth-child(1) {
        width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .footer > :nth-child(n+2) {
        flex: 0 0 45% !important;    
        max-width: 48% !important;
        width: 48% !important;
        min-width: 140px !important;
    }
    

    .footer img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .footer-section {
        width: 48% !important;
        max-width: 48% !important;
        flex: 0 0 48% !important;
        padding: 8px 6px !important;
    }
    
    .footer-section h3 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
        text-align: right;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 13px !important;
        text-align: right;
    }

    .map-box {
        width: 100% !important;
        height: 140px !important;
    }
    
    .social-icons {
        justify-content: center !important;
        margin-top: 12px !important;
    }
    
     .footer > * {
        display: block !important;
    }
}    